<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="wrap">
        <div class="item1"><img src="icon.png"></div>
        <div class="item1"><img src="icon.png"></div>
        <div class="item1"><img src="icon.png"></div>
        <div class="item1"><img src="icon.png"></div>
        <div class="item1"><img src="icon.png"></div>
        <div class="item1"><img src="icon.png"></div>
        <div class="item1"><img src="icon.png"></div>
        <div class="item1"><img src="icon.png"></div>
        <div class="item1"><img src="icon.png"></div>
        <div class="item1"><img src="icon.png"></div>
        <div class="item1"><img src="icon.png"></div>
        <div class="item1"><img src="icon.png"></div>
    </div>
</body>
<style>
    * {
        margin: 0;
        padding: 0;
    }

    .wrap {
        display: grid;
        padding: 4px;
        gap: 16px;
        margin: 0 auto;
        width: 80%;
        min-width: 1000px;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        grid-auto-rows: 200px;
    }

    .item1 {
        border: 1px solid lightgray;
        border-radius: 8px;
    }

    img {
        margin: auto;
        display: block;
        height: 100px;
        object-fit: cover;
    }

</style>

</html>